package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;
import java.util.Map;

/**
 * 档案设置对象 sys_table
 *
 * @author ruoyi_hsl
 * @date 2022-02-15
 */
public class SysTable extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private String recNo;

    /** 分类编号 */
    @Excel(name = "分类编号")
    private String sortNo;

    /** 表名称 */
    @Excel(name = "表名称")
    private String tableName;

    /** 表别名 */
    @Excel(name = "表别名")
    private String tableAlias;

    /** 表类型(0：目录表；1：元数据表) */
    @Excel(name = "表类型(0：目录表；1：元数据表)")
    private String tableType;

    /** 表状态(0：临时表；1：正式表) */
    @Excel(name = "表状态(0：临时表；1：正式表)")
    private String tableStatue;

    /** 删除标志(0代表存在 2代表删除) */
    private String delFlag;

    /** 顺序号 */
    @Excel(name = "顺序号")
    private Long orderNo;

    //分类名称
    private String sortName;

    /** 编号集合 */
    private String[] recNoS;

    // 查询排序
    private Map<String, String> sortBy;

    private ArTableRelation arTableRelation;

    private List<SysTable> sysTableChildren;

    public List<SysTable> getSysTableChildren() {
        return sysTableChildren;
    }

    public void setSysTableChildren(List<SysTable> sysTableChildren) {
        this.sysTableChildren = sysTableChildren;
    }

    public ArTableRelation getArTableRelation() {
        return arTableRelation;
    }

    public void setArTableRelation(ArTableRelation arTableRelation) {
        this.arTableRelation = arTableRelation;
    }

    public Map<String, String> getSortBy() {
        return sortBy;
    }

    public void setSortBy(Map<String, String> sortBy) {
        this.sortBy = sortBy;
    }

    public String[] getRecNoS() {
        return recNoS;
    }

    public void setRecNoS(String[] recNoS) {
        this.recNoS = recNoS;
    }

    public String getSortName() {
        return sortName;
    }

    public void setSortName(String sortName) {
        this.sortName = sortName;
    }

    public void setRecNo(String recNo)
    {
        this.recNo = recNo;
    }

    public String getRecNo()
    {
        return recNo;
    }
    public void setSortNo(String sortNo)
    {
        this.sortNo = sortNo;
    }

    public String getSortNo()
    {
        return sortNo;
    }
    public void setTableName(String tableName)
    {
        this.tableName = tableName;
    }

    public String getTableName()
    {
        return tableName;
    }
    public void setTableAlias(String tableAlias)
    {
        this.tableAlias = tableAlias;
    }

    public String getTableAlias()
    {
        return tableAlias;
    }
    public void setTableType(String tableType)
    {
        this.tableType = tableType;
    }

    public String getTableType()
    {
        return tableType;
    }
    public void setTableStatue(String tableStatue)
    {
        this.tableStatue = tableStatue;
    }

    public String getTableStatue()
    {
        return tableStatue;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setOrderNo(Long orderNo)
    {
        this.orderNo = orderNo;
    }

    public Long getOrderNo()
    {
        return orderNo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recNo", getRecNo())
            .append("sortNo", getSortNo())
            .append("tableName", getTableName())
            .append("tableAlias", getTableAlias())
            .append("tableType", getTableType())
            .append("tableStatue", getTableStatue())
            .append("delFlag", getDelFlag())
            .append("orderNo", getOrderNo())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
